package com.ysu.zyw.modal.po;

import com.ysu.zyw.modal.dto.BlogLeavingMessageInformation;

import java.util.Date;
import java.util.UUID;

/**
 * Created by zhang_yao_wu1993 on 15/4/25.
 *
 * @author by Zerur
 */
public class BlogMessageEntity {
    private int id;
    private String commentContent;
    private Date createDay;
    private int creatorId;
    private String headerPath;

    public BlogMessageEntity(BlogLeavingMessageInformation blogLeavingMessageInformation, int creatorId) {
        this.id = -1;
        this.commentContent = blogLeavingMessageInformation.getMessage();
        this.createDay = new Date();
        this.creatorId = creatorId;
        this.headerPath = "/Other/resources/anonymityHeader.png";
    }

    @Override
    public String toString() {
        return "BlogMessageEntity{" +
                "id=" + id +
                ", commentContent='" + commentContent + '\'' +
                ", createDay=" + createDay +
                ", creatorId=" + creatorId +
                ", headerPath='" + headerPath + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Date getCreateDay() {
        return createDay;
    }

    public void setCreateDay(Date createDay) {
        this.createDay = createDay;
    }

    public int getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(int creatorId) {
        this.creatorId = creatorId;
    }

    public String getHeaderPath() {
        return headerPath;
    }

    public void setHeaderPath(String headerPath) {
        this.headerPath = headerPath;
    }
}
